class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def eat(self):
        print(f"{self.name}正在吃饭")

    def sleep(self):
        print(f"{self.name}正在睡觉")


class Student(Person):
    def __init__(self, name, age, number):
        super().__init__(name, age)
        self.number = number

    def study(self):
        print(f"{self.name}正在学习")


class GroupLeader(Student):
    def __init__(self, name, age, number, position):
        super().__init__(name, age, number)
        self.name = name + position
        self.position = position

    def manage(self):
        print(f"{self.name}正在管理班级")


Ming = Student("小明", 20, 10010)
Ming.eat()
Ming.sleep()
Ming.study()
print('-' * 21)
Liu = GroupLeader("刘", 21, 10011, "组长")
Liu.eat()
Liu.sleep()
Liu.study()
Liu.manage()

